package com.my.jvm.classes;

/**
 * @author mars
 * @date 2025-01-22 22:07
 */
public enum GenderEnum {
    MALE("男", 1),
    FEMALE("女", 2);

    private final String name;
    private final int code;

    GenderEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public int getCode() {
        return code;
    }
}
